<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<c:set var="base" value="${pageContext.request.contextPath}"/>
<html>
<head>
    <title>添加书签</title>
</head>
<body>
<form:form action="${base}/bookmark?m=saveBookmark" commandName="bookmark" method="post">
    <input type="hidden" name="parent.id" value="${folder.id}"/>
    <input type="hidden" name="id" value="${bookmark.id}" />
    <table>
        <tr>
            <td>
                名称：
            </td>
            <td>
                <input type="text" name="name" value="${bookmark.name}"/>
                <form:errors path="name"/>
            </td>
        </tr>
        <tr>
            <td>
                URL：
            </td>
            <td>
                <input type="text" name="url" value="${bookmark.url}"/>
                <form:errors path="url"/>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                <input type="submit" value="提交"/>
                <input type="button" value="取消"/>
            </td>
        </tr>
    </table>
</form:form>
</body>
</html>
